Skip to content

Add extension method for adding IMapper to service collection#516

Merged
andrerav merged 2 commits into
MapsterMapper:masterfrom
stormaref:master
Jan 3, 2023
Merged

Add extension method for adding IMapper to service collection#516
andrerav merged 2 commits into
MapsterMapper:masterfrom
stormaref:master

Conversation

@stormaref

Copy link
Copy Markdown
Contributor

I think this method is crucial when a developer is trying to migrate from AutoMapper to Mapster
I created a test method for this feature that ran successfully and placed it in the dependency injection tests

Test Mapper instance provided by ServiceCollection
AddMapster extension method description added to Readme
@andrerav

andrerav commented Jan 3, 2023

Copy link
Copy Markdown
Member

Good stuff @stormaref, thank you!

@andrerav andrerav merged commit 83144cc into MapsterMapper:master Jan 3, 2023
@stormaref

Copy link
Copy Markdown
Contributor Author

Hi
when you gonna release his version?
should I change the assembly version by myself?

@andrerav

andrerav commented Feb 2, 2023

Copy link
Copy Markdown
Member

Hi @stormaref apologies, I honestly thought I had already released a pre-release package that included this functionality. but obviously I did not :) Will push a pre-release package this evening! Thank you for your patience :)

@stormaref

Copy link
Copy Markdown
Contributor Author

I'm looking forward for this
Also please take a look at this
#533
I think it would come in handy

@angusgajurel

Copy link
Copy Markdown

Does this extension work for the Interface in the different project??

@stormaref

Copy link
Copy Markdown
Contributor Author

Does this extension work for the Interface in the different project??

What exactly do you mean?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants